
import View=laya.ui.View;
import Dialog=laya.ui.Dialog;
module ui {
    export class GameExitDialogUI extends Dialog {
		public confirmBtn:Laya.Button;
		public cancelBtn:Laya.Button;
		public descLabel:Laya.Label;

        public static  uiView:any ={"type":"Dialog","props":{"top":0,"right":0,"left":0,"bottom":0},"child":[{"type":"Image","props":{"top":0,"skin":"images/item_overlay.png","right":0,"left":0,"bottom":0},"child":[{"type":"Button","props":{"width":160,"var":"confirmBtn","stateNum":1,"skin":"images/button_blank.png","labelSize":30,"labelFont":"Helvetica","labelColors":"#584939","labelAlign":"center","label":"CONFIRM","height":60,"centerY":70,"centerX":-100}},{"type":"Button","props":{"width":160,"var":"cancelBtn","stateNum":1,"skin":"images/button_blank.png","labelStrokeColor":"#7f5857","labelSize":30,"labelColors":"#584939","label":"CANCEL","height":60,"centerY":70,"centerX":100}},{"type":"Label","props":{"var":"descLabel","text":"Are you sure\\nyou want to quit?","fontSize":30,"font":"Helvetica","color":"#584938","centerY":-40,"centerX":0,"bold":true,"align":"center"}}]}]};
        constructor(){ super()}
        createChildren():void {
        
            super.createChildren();
            this.createView(ui.GameExitDialogUI.uiView);

        }

    }
}

module ui {
    export class GameLoadingUI extends View {
		public progressLabel:Laya.Label;

        public static  uiView:any ={"type":"View","props":{"top":0,"right":0,"left":0,"bottom":0},"child":[{"type":"Image","props":{"width":54,"skin":"images/loader.png","height":65,"centerY":-30,"centerX":0}},{"type":"Label","props":{"var":"progressLabel","text":"0%","fontSize":20,"font":"Helvetica","color":"#ffffff","centerY":20,"centerX":0,"align":"center"}}]};
        constructor(){ super()}
        createChildren():void {
        
            super.createChildren();
            this.createView(ui.GameLoadingUI.uiView);

        }

    }
}

module ui {
    export class GameSceneUI extends View {
		public stageBg:Laya.Image;
		public exitBtn:Laya.Button;
		public soundBtn:Laya.Button;
		public fullBtn:Laya.Button;
		public lifeLabel:Laya.Label;
		public deamonLabel:Laya.Label;
		public waveLabel:Laya.Label;

        public static  uiView:any ={"type":"View","props":{"top":0,"right":0,"left":0,"bottom":0},"child":[{"type":"Image","props":{"var":"stageBg","top":0,"skin":"images/stage1.png","right":0,"left":0,"bottom":0}},{"type":"Button","props":{"width":52,"var":"exitBtn","top":30,"stateNum":1,"skin":"images/button_exit.png","right":20,"height":56}},{"type":"Button","props":{"y":30,"width":52,"var":"soundBtn","top":30,"stateNum":1,"skin":"images/button_sound_off.png","right":80,"height":56}},{"type":"Button","props":{"y":30,"width":52,"visible":true,"var":"fullBtn","top":30,"stateNum":1,"skin":"images/button_fullscreen.png","right":140,"mouseThrough":true,"height":56}},{"type":"Image","props":{"top":30,"skin":"images/item_status.png","left":20}},{"type":"Image","props":{"y":0,"x":0,"top":0,"skin":"images/item_stage_overlay.png","right":0,"left":0,"bottom":0,"alpha":0}},{"type":"Label","props":{"y":35,"x":67,"var":"\blifeLabel","text":"5","fontSize":24,"font":"Helvetica","color":"#ffffff"}},{"type":"Label","props":{"y":35,"x":138,"var":"deamonLabel","text":"1000","fontSize":24,"font":"Helvetica","color":"#ffffff"}},{"type":"Label","props":{"y":69,"x":73,"var":"waveLabel","text":"wave: 0/5","fontSize":16,"font":"Helvetica","color":"#ffffff"}}]};
        constructor(){ super()}
        createChildren():void {
        
            super.createChildren();
            this.createView(ui.GameSceneUI.uiView);

        }

    }
}

module ui {
    export class GameSelectUI extends View {
		public levelContainer:Laya.Image;
		public fullBtn:Laya.Button;
		public soundBtn:Laya.Button;
		public exitBtn:Laya.Button;

        public static  uiView:any ={"type":"View","props":{"top":0,"right":0,"left":0,"bottom":0},"child":[{"type":"Image","props":{"top":0,"skin":"images/background.png","sizeGrid":"9,9,9,9","right":0,"left":0,"bottom":0}},{"type":"Image","props":{"var":"levelContainer","top":120,"skin":"images/item_select.png","sizeGrid":"9,9,9,9","centerX":0},"child":[{"type":"Label","props":{"y":20,"x":188,"text":"SELECT LEVEL","fontSize":40,"font":"Helvetica","color":"#494d42","align":"center"}}]},{"type":"Button","props":{"width":52,"visible":true,"var":"fullBtn","top":30,"stateNum":1,"skin":"images/button_fullscreen.png","right":140,"mouseThrough":true,"height":56}},{"type":"Button","props":{"width":52,"var":"soundBtn","top":30,"stateNum":1,"skin":"images/button_sound_off.png","right":80,"height":56}},{"type":"Button","props":{"width":52,"var":"exitBtn","top":30,"stateNum":1,"skin":"images/button_exit.png","right":20,"height":56}}]};
        constructor(){ super()}
        createChildren():void {
        
            super.createChildren();
            this.createView(ui.GameSelectUI.uiView);

        }

    }
}

module ui {
    export class GameStartUI extends View {
		public fullBtn:Laya.Button;
		public soundBtn:Laya.Button;
		public startBtn:Laya.Button;

        public static  uiView:any ={"type":"View","props":{"top":0,"right":0,"left":0,"bottom":0},"child":[{"type":"Image","props":{"top":0,"skin":"images/background.png","sizeGrid":"9,9,9,9","right":0,"left":0,"bottom":0}},{"type":"Image","props":{"top":0,"skin":"images/logo.png","sizeGrid":"9,9,9,9","right":0,"left":0,"bottom":0}},{"type":"Button","props":{"y":40,"width":52,"visible":true,"var":"fullBtn","top":30,"stateNum":1,"skin":"images/button_fullscreen.png","right":80,"mouseThrough":true,"height":56}},{"type":"Button","props":{"y":40,"width":52,"var":"soundBtn","top":30,"stateNum":1,"skin":"images/button_sound_off.png","right":20,"height":56}},{"type":"Button","props":{"y":10,"x":306,"width":208,"var":"startBtn","stateNum":1,"skin":"images/button_start.png","height":83,"click":"startClickEvent","centerX":0,"bottom":60}}]};
        constructor(){ super()}
        createChildren():void {
        
            super.createChildren();
            this.createView(ui.GameStartUI.uiView);

        }

    }
}
